package com.xuecheng.media.domain.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.media.domain.model.entity.MediaProcess;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author itcast
 * @since 2024-08-04
 */
public interface MediaProcessService extends IService<MediaProcess> {

    List<MediaProcess> getWaitHandleTaskList(Integer shardIndex, Integer shardTotal, Integer processors);

    Boolean startTask(Long taskId);

    void updateProcess(MediaProcess mediaProcess);

    List<MediaProcess> getCompensateTaskList(Integer shardIndex, Integer shardTotal, Integer processors);
}
